/**
 * Class: Ray
 *
 * Purpose: 
 *
 * Created: Jan 26, 2010 @ 10:01:56 AM
 * @author Ken Scott
 */
package org.openfantasia.ps.util;

import org.openfantasia.util.math.DPoint3;

public class Ray {

	private DPoint3 origin;

	private DPoint3 direction;


	public Ray() {
	}


	public Ray(DPoint3 origin, DPoint3 direction) {
		this.origin = origin;
		this.direction = direction.normalize();
	}


	public DPoint3 getOrigin() {
		return origin;
	}


	public void setOrigin(DPoint3 origin) {
		this.origin = origin;
	}


	public DPoint3 getDirection() {
		return direction;
	}


	public void setDirection(DPoint3 direction) {
		this.direction = direction;
	}

}
